DataGridAddComboBoxColumn

 

The DataGridAddComboBoxColumn function adds a combobox column to a DataGrid object.

 

void @DataGridAddComboBoxColumn(string classname, string column_name, string column_text, string data_name);

 

Parameters

string class_name : Class name of the DataGrid object

string column_name : Column name (You can set the column name firstly by using this function. If you refer to column which is related to other Grid function, you have to use column name which is set by this function.)

string column_text : Displayed text on Column at DataGrid object.

string data_name : Column name about data to connect (It is part to enter the column name of database, when DataGrid object is created by database.)

 

Return Value

None

 

Example

@DataGridAddComboBoxColumn("DataGrid1", "Combo", "Combo", "");
@DataGridComboBoxColumnItemAdd("DataGrid1", "Combo", "Korean");
@DataGridComboBoxColumnItemAdd("DataGrid1", "Combo", "English");
@DataGridComboBoxColumnItemAdd("DataGrid1", "Combo", "Japanese");
@DataGridComboBoxColumnItemAdd("DataGrid1", "Combo", "Chinese");

 

Description : Add a combo box Column 'Combo' to the DataGrid object 'DataGrid1'.  Then, add "korean", "English", "Japanese" and "Chinese" items in the combo box.

 

Version Information

Supported Version: 10.3.2

 

Related Helps

@DataGridAddButtonColumn()

@DataGridAddCheckBoxColumn()

@DataGridAddComboBoxColumn()

@DataGridAddRow()

@DataGridAddTextBoxColumn()

@DataGridClearColumn()

@DataGridComboBoxColumnItemAdd()

@DataGridDeleteRow()

@DataGridGetCellData()

@DataGridGetCellSel()

@DataGridGetColumnName()

@DataGridGetCurSel()

@DataGridGetRowCount()

@DataGridGetRowData()

@DataGridInsertRow()

@DataGridReLoad()

@DataGridSetCellBackColor()

@DataGridSetCellData()

@DataGridSetCellTextColor()

@DataGridSetColumnAlignment()

@DataGridSetColumnHeadersHeight()

@DataGridSetColumnIndex()

@DataGridSetColumnReadOnly()

@DataGridSetColumnText()

@DataGridSetColumnVisible()

@DataGridSetColumnWidth()

@DataGridSetCurSel()

@DataGridSetDataTable()

@DataGridSetDsn()

@DataGridSetRowData()

@DataGridSetRowHeight()

@DataGridSetSelect()